package org.openslash.util;

import mysgs.SGSException;

public class Scanner {
	
	private static AbstractScannerInputMethord as;
	
	public static void setUp(AbstractScannerInputMethord s)
	{
		if( as == null )
		{
			as = s;
		}
	}
	
	public static void destroy()
	{
		if( as != null )
		{
			as = null;
		}
	}
	
	public static byte nextByte() throws SGSException
	{
		return as._nextByte();
	}

	public static int nextInt() throws SGSException
	{
		return as._nextInt();
	}

	public static String nextLine() throws SGSException {
		return as._nextLine();
	}

	public static short nextShort() throws SGSException {
		return as._nextShort();
	}

}
